<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>骡窝日报详情</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<link rel="stylesheet" href	="/js/bootstrap/css/bootstrap.min.css">
		<script src="/js/jquery/jquery.min.js"></script>
		<script src="/js/bootstrap/js/bootstrap.min.js"></script>
		<link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="/css/reset.css">
		<link rel="stylesheet" href="/css/newsContent.css">
		<script src="/js/plugins/jrender/jrender.js"></script>
		<script src="/js/common.js"></script>
		
	</head>

	<body>
		<div class="newsDetail">
			<div>
			<a href="javascript:history.go(-1);" style="position: absolute;top: 10px;left: 22px;">
				<span><i class="fa fa-chevron-left fa-2x" style="color: white;"></i></span>
			</a>
			<img render-src="coverUrl">

			<div class="container">
				<div class="row typeRow">
					<div class="col-4">
						<span class="type" render-html="newsCatalog.name"></span>
					</div>
					<div class="col-2">
					</div>
					<div class="col-2">
						<span>By</span>
					</div>
					<div class="col-4">
						<span class="type">骡窝官方</span>
					</div>
				</div>

				<div class="detail">
					<h2 class="title" render-html="title"></h2>
					<div class="content" render-html="newsContent.content"></div>
				</div>
			</div></div>
		</div>
	
		<script>
			$(function () {
			    //获取id
			    var newsDetailId = getParams().id;
				//发起请求指定id查询日报内容
			    $.get("/news/detail/"+newsDetailId,function (data) {
					console.log(data);
					$(".newsDetail").renderValues(data);
                })
            })
		</script>
</body>

</html>